package ca.etsmtl.log730.projet2.connectors.msg.document;

import java.io.Serializable;
import java.util.UUID;

import ca.etsmtl.log730.projet2.documents.Document;

public class DocumentEVT implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4167719045098999580L;
	private ModType modType;
	private UUID docId;
	private Document document;
	public DocumentEVT(ModType m, UUID u, Document d) {
		setModType(m);
		setDocId(u);
		setDocument(d);
	}
	public ModType getModType() {
		return modType;
	}
	public void setModType(ModType modType) {
		this.modType = modType;
	}
	public UUID getDocId() {
		return docId;
	}
	public void setDocId(UUID docId) {
		this.docId = docId;
	}
	public Document getDocument() {
		return document;
	}
	public void setDocument(Document document) {
		this.document = document;
	}
	public static enum ModType {
		CHANGED, ADDED, REMOVED;
	}
}
